<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: Bitnik::Apm::ApmlDocument</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">Bitnik::Apm::ApmlDocument</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../files/lib/apm_parser_rb.html">
                lib/apm_parser.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                Object
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <p>
Models the structure of an APML file.
</p>

    </div>


   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000058">found_APML</a>&nbsp;&nbsp;
      <a href="#M000063">found_Profile</a>&nbsp;&nbsp;
      <a href="#M000067">found_Source</a>&nbsp;&nbsp;
      <a href="#M000057">new</a>&nbsp;&nbsp;
      <a href="#M000066">parsed_Author</a>&nbsp;&nbsp;
      <a href="#M000065">parsed_Concept</a>&nbsp;&nbsp;
      <a href="#M000062">parsed_DateCreated</a>&nbsp;&nbsp;
      <a href="#M000060">parsed_Generator</a>&nbsp;&nbsp;
      <a href="#M000064">parsed_Profile</a>&nbsp;&nbsp;
      <a href="#M000068">parsed_Source</a>&nbsp;&nbsp;
      <a href="#M000059">parsed_Title</a>&nbsp;&nbsp;
      <a href="#M000061">parsed_UserEmail</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





    <div id="attribute-list">
      <h3 class="section-bar">Attributes</h3>

      <div class="name-list">
        <table>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">date_created</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
APML DateCreated element.

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">generator</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
APML Generator element.

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">profiles</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
APML <a href="Profile.html">Profile</a> element

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">title</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
APML Title element.

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">user_email</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
APML UserEmail element.

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">version</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
APML Version element.

</td>
        </tr>
        </table>
      </div>
    </div>
      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000057" class="method-detail">
        <a name="M000057"></a>

        <div class="method-heading">
          <a href="#M000057" class="method-signature">
          <span class="method-name">new</span><span class="method-args">(xml)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Constructor The APML XML stream is passed as a parameter.
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000057-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 70</span>
 70:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">xml</span>)
 71:         <span class="ruby-ivar">@mapping</span> = [[<span class="ruby-identifier">:init</span>,<span class="ruby-identifier">:apml</span>,<span class="ruby-value str">&quot;APML&quot;</span>],
 72:                    [<span class="ruby-identifier">:apml</span>,<span class="ruby-identifier">:head</span>,<span class="ruby-value str">&quot;Head&quot;</span>],
 73:                    [<span class="ruby-identifier">:head</span>,<span class="ruby-identifier">:title</span>,<span class="ruby-value str">&quot;Title&quot;</span>],
 74:                    [<span class="ruby-identifier">:title</span>,<span class="ruby-identifier">:head</span>,<span class="ruby-value str">&quot;/Title&quot;</span>],
 75:                    [<span class="ruby-identifier">:head</span>,<span class="ruby-identifier">:generator</span>,<span class="ruby-value str">&quot;Generator&quot;</span>],
 76:                    [<span class="ruby-identifier">:generator</span>,<span class="ruby-identifier">:head</span>,<span class="ruby-value str">&quot;/Generator&quot;</span>],
 77:                    [<span class="ruby-identifier">:head</span>,<span class="ruby-identifier">:user_email</span>,<span class="ruby-value str">&quot;UserEmail&quot;</span>],
 78:                    [<span class="ruby-identifier">:user_email</span>,<span class="ruby-identifier">:head</span>,<span class="ruby-value str">&quot;/UserEmail&quot;</span>],
 79:                    [<span class="ruby-identifier">:head</span>,<span class="ruby-identifier">:date_created</span>,<span class="ruby-value str">&quot;DateCreated&quot;</span>],
 80:                    [<span class="ruby-identifier">:date_created</span>,<span class="ruby-identifier">:head</span>,<span class="ruby-value str">&quot;/DateCreated&quot;</span>],
 81:                    [<span class="ruby-identifier">:head</span>,<span class="ruby-identifier">:apml</span>,<span class="ruby-value str">&quot;/Head&quot;</span>],
 82:                    [<span class="ruby-identifier">:apml</span>,<span class="ruby-identifier">:body</span>,<span class="ruby-value str">&quot;Body&quot;</span>],
 83:                    [<span class="ruby-identifier">:body</span>,<span class="ruby-identifier">:profile</span>,<span class="ruby-value str">&quot;Profile&quot;</span>],
 84:                    [<span class="ruby-identifier">:profile</span>,<span class="ruby-identifier">:implicit_data</span>,<span class="ruby-value str">&quot;ImplicitData&quot;</span>],
 85:                    [<span class="ruby-identifier">:implicit_data</span>,<span class="ruby-identifier">:implicit_concept</span>,<span class="ruby-value str">&quot;Concept&quot;</span>],
 86:                    [<span class="ruby-identifier">:implicit_concept</span>,<span class="ruby-identifier">:implicit_data</span>,<span class="ruby-value str">&quot;/Concept&quot;</span>],
 87:                    [<span class="ruby-identifier">:implicit_data</span>,<span class="ruby-identifier">:implicit_source</span>, <span class="ruby-value str">&quot;Source&quot;</span>],
 88:                    [<span class="ruby-identifier">:implicit_source</span>,<span class="ruby-identifier">:implicit_data</span>,<span class="ruby-value str">&quot;/Source&quot;</span>],
 89:                    [<span class="ruby-identifier">:implicit_source</span>,<span class="ruby-identifier">:author</span>,<span class="ruby-value str">&quot;Author&quot;</span>],
 90:                    [<span class="ruby-identifier">:author</span>,<span class="ruby-identifier">:implicit_source</span>,<span class="ruby-value str">&quot;/Author&quot;</span>],
 91:                    [<span class="ruby-identifier">:implicit_data</span>,<span class="ruby-identifier">:profile</span>,<span class="ruby-value str">&quot;/ImplicitData&quot;</span>],
 92:                    [<span class="ruby-identifier">:profile</span>,<span class="ruby-identifier">:explicit_data</span>,<span class="ruby-value str">&quot;ExplicitData&quot;</span>],
 93:                    [<span class="ruby-identifier">:explicit_data</span>,<span class="ruby-identifier">:explicit_concept</span>,<span class="ruby-value str">&quot;Concept&quot;</span>],
 94:                    [<span class="ruby-identifier">:explicit_concept</span>,<span class="ruby-identifier">:explicit_data</span>,<span class="ruby-value str">&quot;/Concept&quot;</span>],
 95:                    [<span class="ruby-identifier">:explicit_data</span>,<span class="ruby-identifier">:source_explicit</span>, <span class="ruby-value str">&quot;Source&quot;</span>],
 96:                    [<span class="ruby-identifier">:source_explicit</span>,<span class="ruby-identifier">:explicit_data</span>,<span class="ruby-value str">&quot;/Source&quot;</span>],
 97:                    [<span class="ruby-identifier">:explicit_source</span>,<span class="ruby-identifier">:author</span>,<span class="ruby-value str">&quot;Author&quot;</span>],
 98:                    [<span class="ruby-identifier">:author</span>,<span class="ruby-identifier">:explicit_source</span>,<span class="ruby-value str">&quot;/Author&quot;</span>],
 99:                    [<span class="ruby-identifier">:explicit_data</span>,<span class="ruby-identifier">:profile</span>,<span class="ruby-value str">&quot;/ExplicitData&quot;</span>],
100:                    [<span class="ruby-identifier">:profile</span>,<span class="ruby-identifier">:body</span>,<span class="ruby-value str">&quot;/Profile&quot;</span>],
101:                    [<span class="ruby-identifier">:body</span>,<span class="ruby-identifier">:apml</span>,<span class="ruby-value str">&quot;/APML&quot;</span>]]
102: 
103:         <span class="ruby-ivar">@profiles</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
104:         <span class="ruby-ivar">@parser</span> = <span class="ruby-constant">AutomataParser</span><span class="ruby-operator">::</span><span class="ruby-constant">Parser</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@mapping</span>,<span class="ruby-identifier">:init</span>,<span class="ruby-keyword kw">self</span>)
105:         <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">xml</span>
106:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000058" class="method-detail">
        <a name="M000058"></a>

        <div class="method-heading">
          <a href="#M000058" class="method-signature">
          <span class="method-name">found_APML</span><span class="method-args">(apml)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parsing method
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000058-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 109</span>
109:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">found_APML</span>(<span class="ruby-identifier">apml</span>)
110:         <span class="ruby-ivar">@version</span> = <span class="ruby-identifier">apml</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;version&quot;</span>]
111:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000063" class="method-detail">
        <a name="M000063"></a>

        <div class="method-heading">
          <a href="#M000063" class="method-signature">
          <span class="method-name">found_Profile</span><span class="method-args">(profile)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parsing method
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000063-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 134</span>
134:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">found_Profile</span>(<span class="ruby-identifier">profile</span>)
135:         <span class="ruby-ivar">@current_profile</span> = <span class="ruby-constant">Profile</span>.<span class="ruby-identifier">new</span>
136:         <span class="ruby-ivar">@current_profile</span>.<span class="ruby-identifier">name</span> = <span class="ruby-identifier">profile</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;name&quot;</span>]
137:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000067" class="method-detail">
        <a name="M000067"></a>

        <div class="method-heading">
          <a href="#M000067" class="method-signature">
          <span class="method-name">found_Source</span><span class="method-args">(source)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parsing method
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000067-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 168</span>
168:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">found_Source</span>(<span class="ruby-identifier">source</span>)
169:         <span class="ruby-ivar">@current_source</span> = <span class="ruby-constant">Source</span>.<span class="ruby-identifier">new</span>
170:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000066" class="method-detail">
        <a name="M000066"></a>

        <div class="method-heading">
          <a href="#M000066" class="method-signature">
          <span class="method-name">parsed_Author</span><span class="method-args">(author)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parsing method
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000066-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 159</span>
159:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsed_Author</span>(<span class="ruby-identifier">author</span>)
160:         <span class="ruby-identifier">oauthor</span> = <span class="ruby-constant">Author</span>.<span class="ruby-identifier">new</span>
161:         <span class="ruby-identifier">oauthor</span>.<span class="ruby-identifier">key</span> = <span class="ruby-identifier">author</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;key&quot;</span>]
162:         <span class="ruby-identifier">oauthor</span>.<span class="ruby-identifier">from</span> = <span class="ruby-identifier">author</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;from&quot;</span>]
163:         <span class="ruby-identifier">oauthor</span>.<span class="ruby-identifier">updated</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">author</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;updated&quot;</span>])
164:         <span class="ruby-ivar">@current_source</span>.<span class="ruby-identifier">author</span> = <span class="ruby-identifier">oauthor</span>
165:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000065" class="method-detail">
        <a name="M000065"></a>

        <div class="method-heading">
          <a href="#M000065" class="method-signature">
          <span class="method-name">parsed_Concept</span><span class="method-args">(concept)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parsing method
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000065-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 145</span>
145:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsed_Concept</span>(<span class="ruby-identifier">concept</span>)
146:         <span class="ruby-identifier">oconcept</span> = <span class="ruby-constant">Concept</span>.<span class="ruby-identifier">new</span>
147:         <span class="ruby-identifier">oconcept</span>.<span class="ruby-identifier">key</span> = <span class="ruby-identifier">concept</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;key&quot;</span>]
148:         <span class="ruby-identifier">oconcept</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">concept</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;value&quot;</span>]
149:         <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">current_state</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:implicit_data</span>
150:           <span class="ruby-identifier">oconcept</span>.<span class="ruby-identifier">from</span> = <span class="ruby-identifier">concept</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;from&quot;</span>]
151:           <span class="ruby-identifier">oconcept</span>.<span class="ruby-identifier">updated</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">concept</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;updated&quot;</span>])
152:           <span class="ruby-ivar">@current_profile</span>.<span class="ruby-identifier">implicit_concepts</span>[<span class="ruby-identifier">oconcept</span>.<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">oconcept</span>
153:         <span class="ruby-keyword kw">else</span>
154:           <span class="ruby-ivar">@current_profile</span>.<span class="ruby-identifier">explicit_concepts</span>[<span class="ruby-identifier">oconcept</span>.<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">oconcept</span>
155:         <span class="ruby-keyword kw">end</span>
156:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000062" class="method-detail">
        <a name="M000062"></a>

        <div class="method-heading">
          <a href="#M000062" class="method-signature">
          <span class="method-name">parsed_DateCreated</span><span class="method-args">(date)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parsing method
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000062-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 129</span>
129:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsed_DateCreated</span>(<span class="ruby-identifier">date</span>)
130:         <span class="ruby-ivar">@date_created</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">date</span>.<span class="ruby-identifier">text</span>)
131:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000060" class="method-detail">
        <a name="M000060"></a>

        <div class="method-heading">
          <a href="#M000060" class="method-signature">
          <span class="method-name">parsed_Generator</span><span class="method-args">(generator)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parsing method
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000060-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 119</span>
119:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsed_Generator</span>(<span class="ruby-identifier">generator</span>)
120:         <span class="ruby-ivar">@generator</span> = <span class="ruby-identifier">generator</span>.<span class="ruby-identifier">text</span>
121:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000064" class="method-detail">
        <a name="M000064"></a>

        <div class="method-heading">
          <a href="#M000064" class="method-signature">
          <span class="method-name">parsed_Profile</span><span class="method-args">(profile)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parsing method
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000064-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 140</span>
140:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsed_Profile</span>(<span class="ruby-identifier">profile</span>)
141:         <span class="ruby-ivar">@profiles</span>[<span class="ruby-ivar">@current_profile</span>.<span class="ruby-identifier">name</span>] =  <span class="ruby-ivar">@current_profile</span>
142:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000068" class="method-detail">
        <a name="M000068"></a>

        <div class="method-heading">
          <a href="#M000068" class="method-signature">
          <span class="method-name">parsed_Source</span><span class="method-args">(source)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parsing method
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000068-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 173</span>
173:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsed_Source</span>(<span class="ruby-identifier">source</span>)
174:         <span class="ruby-keyword kw">begin</span>
175:         <span class="ruby-ivar">@current_source</span>.<span class="ruby-identifier">key</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;key&quot;</span>]
176:         <span class="ruby-ivar">@current_source</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;value&quot;</span>]
177:         <span class="ruby-ivar">@current_source</span>.<span class="ruby-identifier">name</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;name&quot;</span>]
178:         <span class="ruby-ivar">@current_source</span>.<span class="ruby-identifier">type</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;type&quot;</span>]
179:         <span class="ruby-ivar">@current_source</span>.<span class="ruby-identifier">from</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;from&quot;</span>]
180:         <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;updated&quot;</span>]<span class="ruby-operator">!=</span><span class="ruby-keyword kw">nil</span>
181:           <span class="ruby-ivar">@current_source</span>.<span class="ruby-identifier">updated</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">source</span>.<span class="ruby-identifier">values</span>[<span class="ruby-value str">&quot;updated&quot;</span>])
182:         <span class="ruby-keyword kw">end</span>
183:         <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">current_state</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:implicit_data</span>
184:           <span class="ruby-ivar">@current_profile</span>.<span class="ruby-identifier">implicit_sources</span>[<span class="ruby-ivar">@current_source</span>.<span class="ruby-identifier">key</span>] = <span class="ruby-ivar">@current_source</span>
185:         <span class="ruby-keyword kw">else</span>
186:           <span class="ruby-ivar">@current_profile</span>.<span class="ruby-identifier">explicit_sources</span>[<span class="ruby-ivar">@current_source</span>.<span class="ruby-identifier">key</span>] = <span class="ruby-ivar">@current_source</span>
187:         <span class="ruby-keyword kw">end</span>
188:         <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ex</span>
189:           <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;EXCEPCION#{ex.message}&quot;</span>
190:           <span class="ruby-identifier">puts</span> <span class="ruby-identifier">ex</span>.<span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;\n&quot;</span>)
191:         <span class="ruby-keyword kw">end</span>
192:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000059" class="method-detail">
        <a name="M000059"></a>

        <div class="method-heading">
          <a href="#M000059" class="method-signature">
          <span class="method-name">parsed_Title</span><span class="method-args">(title)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parsing method
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000059-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 114</span>
114:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsed_Title</span>(<span class="ruby-identifier">title</span>)
115:         <span class="ruby-ivar">@title</span> = <span class="ruby-identifier">title</span>.<span class="ruby-identifier">text</span>
116:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000061" class="method-detail">
        <a name="M000061"></a>

        <div class="method-heading">
          <a href="#M000061" class="method-signature">
          <span class="method-name">parsed_UserEmail</span><span class="method-args">(email)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parsing method
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000061-source">
<pre>
     <span class="ruby-comment cmt"># File lib/apm_parser.rb, line 124</span>
124:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parsed_UserEmail</span>(<span class="ruby-identifier">email</span>)
125:         <span class="ruby-ivar">@user_email</span> = <span class="ruby-identifier">email</span>.<span class="ruby-identifier">text</span>
126:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>